package cn.tworice.blog.service;

import cn.tworice.blog.entity.BlogEntry;
import cn.tworice.blog.entity.CountIp;
import cn.tworice.blog.entity.ErrorInfo;
import com.lmk.core.web.support.api.RequestResult;

import java.util.List;
import java.util.Map;

public interface BlogService {
    RequestResult editEntry(BlogEntry blogEntry);

    RequestResult queryBlogEntryList();

    RequestResult checkLogin(String password, String ipAddress);

    RequestResult isLogin(String ipAddress);

    RequestResult delEntryById(Integer id);

    RequestResult delEntryByIds(List<Integer> ids);


    List<ErrorInfo> getErrorInfo(Long startTime, Long endTime);

    List<CountIp> getUserInfo();

    List<String> getHistoryDate(int i);

    Map<String,Object> getIpSumByDate(int i);

    Map<String,Object> getErrorSum(int i);
}
